package com.xpec.c4.service.module.datacenter.player.db;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xpec.c4.db.model.log.basic.BasicTransactionLogModel;

@Entity
@Table(name = "daily_exchange")
@org.hibernate.annotations.Table(
		appliesTo = "daily_exchange", indexes =
		{
				@org.hibernate.annotations.Index(name = "IDX_EVENT_DATE", columnNames = {"playerId", "eventDate"}),
		}
)
public class DailyExchangeLogModel extends BasicTransactionLogModel{

	private static final long serialVersionUID = 3836795575812138009L;

	/** player guid */
	private String playerId;

	/** 行為id */
	private int changeWay;
	
	/** 行為說明 */
	private String changeWayDesc;

	/** 金幣 異動數值 */
	private BigDecimal goldChangeValue;

	/** 金幣 變更後數值 */
	private BigDecimal goldAfterChange;
	
	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public int getChangeWay() {
		return changeWay;
	}

	public void setChangeWay(int changeWay) {
		this.changeWay = changeWay;
	}

	public String getChangeWayDesc() {
		return changeWayDesc;
	}

	public void setChangeWayDesc(String changeWayDesc) {
		this.changeWayDesc = changeWayDesc;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getGoldChangeValue() {
		return goldChangeValue;
	}

	public void setGoldChangeValue(BigDecimal goldChangeValue) {
		this.goldChangeValue = goldChangeValue;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getGoldAfterChange() {
		return goldAfterChange;
	}

	public void setGoldAfterChange(BigDecimal goldAfterChange) {
		this.goldAfterChange = goldAfterChange;
	}

}
